package com.hl.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品分类对象 product_category
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public class ProductCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 创建者 */
    private String creator;

    /** 删除 */
    private Integer isDeleted;

    /** 更新人 */
    private String updater;

    /** 佣金比例(百分比) */
    @Excel(name = "佣金比例(百分比)")
    private BigDecimal commissionRate;

    /** 分类图标URL */
    private String categoryIcon;

    /** 层级(1:一级分类,2:二级分类,...) */
    private Integer level;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 父分类ID(一级分类为NULL) */
    private Integer parentId;

    /** 排序值(数字越小越靠前) */
    private Integer sortOrder;

    /** 是否支持频道(true/false) */
    private Integer isChannelSupported;

    /** 状态:disabled-禁用,enabled-正常启用 */
    @Excel(name = "状态:disabled-禁用,enabled-正常启用")
    private String status;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setCommissionRate(BigDecimal commissionRate) 
    {
        this.commissionRate = commissionRate;
    }

    public BigDecimal getCommissionRate() 
    {
        return commissionRate;
    }
    public void setCategoryIcon(String categoryIcon) 
    {
        this.categoryIcon = categoryIcon;
    }

    public String getCategoryIcon() 
    {
        return categoryIcon;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }
    public void setCategoryName(String categoryName) 
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName() 
    {
        return categoryName;
    }
    public void setParentId(Integer parentId) 
    {
        this.parentId = parentId;
    }

    public Integer getParentId() 
    {
        return parentId;
    }
    public void setSortOrder(Integer sortOrder) 
    {
        this.sortOrder = sortOrder;
    }

    public Integer getSortOrder() 
    {
        return sortOrder;
    }
    public void setIsChannelSupported(Integer isChannelSupported) 
    {
        this.isChannelSupported = isChannelSupported;
    }

    public Integer getIsChannelSupported() 
    {
        return isChannelSupported;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("isDeleted", getIsDeleted())
            .append("updater", getUpdater())
            .append("updateTime", getUpdateTime())
            .append("commissionRate", getCommissionRate())
            .append("categoryIcon", getCategoryIcon())
            .append("level", getLevel())
            .append("categoryName", getCategoryName())
            .append("parentId", getParentId())
            .append("sortOrder", getSortOrder())
            .append("isChannelSupported", getIsChannelSupported())
            .append("status", getStatus())
            .toString();
    }
}
